﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Combat/Combat.master" AutoEventWireup="true" StylesheetTheme="Content" CodeFile="InputList.aspx.cs" Inherits="Combat_InputList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <script language="javascript" type="text/javascript">
     function Winopen(obj, obj2, sid, objyear, objmonth) {
            var ul = "ScoreView.aspx?TaskID=" + obj + "&RankID=" + obj2 + "&SoldierID=" + sid + "&year=" + objyear+"&month="+objmonth;
            var popwin = window.open(ul, 'newwindow', 'height=768, width=1024, top=0,left=0, toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=yes')
            popwin.moveTo(100, 20)
            
        }
        </script>
<ul class="topmenu">
<li>年</li>
<li>
    <asp:DropDownList ID="ddlYear" runat="server">
    </asp:DropDownList>
</li>
<li>月</li>
<li>
    <asp:DropDownList ID="ddlMonth" runat="server">
    </asp:DropDownList>
</li>
<li>单位</li>
<li>
    <asp:DropDownList ID="ddlDepartment" runat="server">
    </asp:DropDownList>
</li>
<li>
    <asp:LinkButton ID="btnQuery" runat="server" onclick="btnQuery_Click">查询</asp:LinkButton></li>
</ul>
<table width="765px" cellpadding="0" cellspacing="0">
        <caption>
            <span>应录入士兵</span></caption>
        <tr>
            <td>
                <asp:DataList ID="dltSoldiers" RepeatColumns="10" runat="server" 
                    onitemdatabound="dltSoldiers_ItemDataBound">
                    <ItemTemplate>
                        <div style="width: 75px; height: 25px">
                            <asp:LinkButton ID="lnbtnSoldier" CommandArgument='<%# Eval("SoldierID") %>' runat="server"
                                Text='<%# GetSoldierName(Eval("SoldierID"))%>' OnClientClick=<%# "Winopen('"+GetTaskID()+"','"+GetRankID(Eval("SoldierID").ToString())+"','"+Eval("SoldierID")+"','"+ddlYear.SelectedValue+"','"+ddlMonth.SelectedValue+"')" %> ></asp:LinkButton>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
    <table width="765px" cellpadding="0" cellspacing="0">
        <caption>
            <span>未录入士兵</span></caption>
        <tr>
            <td>
                <asp:DataList ID="dltSoldiers2" RepeatColumns="10" runat="server" 
                    onitemdatabound="dltSoldiers_ItemDataBound">
                    <ItemTemplate>
                        <div style="width: 75px; height: 25px">
                            <asp:LinkButton ID="lnbtnSoldier" CommandArgument='<%# Eval("SoldierID") %>' runat="server"
                                Text='<%# GetSoldierName(Eval("SoldierID"))%>' OnClientClick="javascript:return alert('未录入该士兵训练成绩')" ></asp:LinkButton>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
            </td>
        </tr>
    </table>
</asp:Content>

